package org.aeon.gamechatnest.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.aeon.gamechatnest.validated.annotation.AnyNotEmpty;

import java.io.Serializable;

/**
 * @author MissingAeon
 * @date 2024/5/13 14:25
 * @description 权限搜索扩展类 用于用户服务器搜索参数传递使用
 */

@Data
@Schema(description = "权限搜索扩展类")
public class AuthoritySearchDto implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 权限关键字
     */
    @Schema(description = "权限关键字")
    @AnyNotEmpty(clazz = AuthoritySearchDto.class)
    private String keyword;

    /**
     * 权限类别
     */
    @Schema(description = "权限类别")
    @AnyNotEmpty(clazz = AuthoritySearchDto.class)
    private Long categoryId;
}
